<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<title></title>
		<link rel="stylesheet" type="text/css" href="<?=$views_home;?>css/base.css"/>
		<script type="text/JavaScript" src="<?=$web_site;?>public/ckeditor/ckeditor.js"></script>
	</head>
	<style>
	/***************伪类选择器（a标签的设置）**************************/

	/*******************密码左边栏开始*********************************/
		.set{
			width:970px;
			margin: 0 auto;
			background: #fff;
			border:1px solid #ccc;

		}
		
		.set_left{
			width:170px;
			height:500px;
			border:1px solid #ccc;
			background: #fcfdfe;
			float:left;
		}

		.set_left_head{
			width:170px;
			height:50px;
			border-bottom:dashed #ccc 1px;
			font-weight: bold;
			font-size:16px;
			line-height:50px;
			text-align:center;

		}
		.set_left_one{
			width:170px;
			height:40px;
			border-bottom:dashed #ccc 1px;
			line-height:40px;
			text-align:center;
			font-size:14px;

		}

		.set_left_two{
			width:170px;
			height:40px;
			border-bottom:dashed #ccc 1px;
			line-height:40px;
			text-align:center;
			font-size:14px;

		}
		.set_left_three{
			width:170px;
			height:40px;
			border-bottom:dashed #ccc 1px;
			line-height:40px;
			text-align:center;
			font-size:14px;

		}
		.set_left_four{
			width:170px;
			height:40px;
			border-bottom:dashed #ccc 1px;
			line-height:40px;
			text-align:center;
			font-size:14px;

		}
		
	/***************密码左边栏结束*****************************************/

		
	/***************密码右边栏开始*******************************************/

	/*	.set_right{
			width:796px;
			border:1px solid #ccc;
			background: #ccc;
			float:left;

		}
	*/	
		/***********或****修改头像****************************************/
		.set_right_one{
			width:794px;
			float:left;

		}
		.set_right_one_tip1{
			width:794px;
			height:50px;
			font-weight: bold; 
			font-size:14px;
			color:blue;
			margin-left:20px;
			margin-top:20px;

		}
		.set_right_one_tip2{
			width:794px;
			height:40px;
			margin-left:20px;
			


		}
	
		.set_right_one_img{
			width:60px;
			height:60px;
		//	background:#fff url('<?=$views_home;?>image/login_after_pic.gif')no-repeat;
			margin-left:20px;
			border:1px solid #ccc;
		}

		.set_right_one_tip3{
			width:794px;
			height:40px;
			font-weight: bold; 
			font-size:16px;
			margin-left:20px;
			margin-top:100px;
		}
		.set_right_one_put1{
			margin-left:20px;
			margin-top:20px;
		}
		.set_right_one_put2{
			margin-left:40px;
			margin-top:20px;
		}
			
		/***********或****个人资料**************************************/
		.set_right_two{
			width:794px;
			float:left;

		}
		.set_right_two_head{
			width:774px;
			height:50px;
			font-size:14px;
			font-weight: bold;
			padding-left: 20px;
			line-height: 50px;
			color:blue;
			border-bottom:1px solid #ccc;
			
		}
		.set_right_two_0{
			width:794px;
			height:40px;
			
			margin-left: 20px;
			line-height: 40px;
		}

		.set_right_two_p0{
			font-size: 14px;
			float:left;
		}
		.set_right_two_p1{
			margin-left:200px;
			font-size: 14px;
			float:left;
		}
		.set_right_two_1{
			width:794px;
			height:40px;
			font-size: 14px;
			margin-left: 20px;
			line-height: 40px;
		}
		.set_right_two_put1{
			width:300px;
			height:25px;
			font-size: 14px;
			margin-left: 90px;

		}
		.set_right_two_2{
			width:794px;
			height:40px;
			font-size: 14px;
			margin-left: 20px;
			line-height: 40px;
		}
		.set_right_two_put2{
			
			margin-left: 220px;

		}
		
		.set_right_two_3{
			width:794px;
			height:40px;
			font-size: 14px;
			margin-left: 20px;
			line-height: 40px;
		}
		.set_right_two_put3{
			width:300px;
			height:25px;
			margin-left: 120px;

		}
		.set_right_two_4{
			width:794px;
			height:40px;
			font-size: 14px;
			margin-left: 20px;
			line-height: 40px;
		}
		.set_right_two_put4{
			width:300px;
			height:25px;
			margin-left: 120px;

		}
		.set_right_two_5{
			width:794px;
			height:40px;
			font-size: 14px;
			margin-left: 20px;
		}
		.set_right_two_put5{
			width:300px;
			height:25px;
			margin-left: 97px;

		}
		.set_right_two_put6{
			display:block;
			width:60px;
			height:30px;
			margin-left: 250px;
			color:#2B7ACD;
			font-size:16px;
		}
		/***********或****个性签名**************************************/
		.set_right_three{
			width:794px;
			float:left;

		}
		.set_right_three_head{
			width:774px;
			height:50px;
			font-size:14px;
			font-weight: bold;
			padding-left: 20px;
			line-height: 50px;
			color:blue;
			border-bottom:1px solid #ccc;
			
		}
		.set_right_three_button{
			display:block;
			width:60px;
			height:30px;
			margin-top: 20px;
			margin-left: 120px;
			color:#2B7ACD;
			font-size:16px;

		}

		/***********或****密码安全*************************************/
		.set_right_four{
			width:794px;
			float:left;

		}
		.set_right_four_head{
			width:774px;
			height:50px;
			font-size:14px;
			font-weight: bold;
			padding-left: 20px;
			line-height: 50px;
			color:blue;
			border-bottom:1px dashed #ccc;
			
		}

		.set_right_four_1{
			width:794px;
			height:40px;
			font-size: 14px;
			margin-left: 20px;
		}
		.set_right_four_put1{
			width:300px;
		
			margin-left: 97px;
			margin-top:10px;

		}
		.set_right_four_2{
			width:794px;
			height:40px;
			font-size: 14px;
			margin-left: 20px;
		}
		.set_right_four_put2{
			width:300px;
	
			margin-left: 97px;
			margin-top:10px;

		}

		.set_right_four_3{
			width:794px;
			height:40px;
			font-size: 14px;
			margin-left: 20px;
		}
		.set_right_four_put3{
			width:300px;
		
			margin-left: 68px;
			margin-top:10px;

		}
		.set_right_four_4{
			width:794px;
			height:40px;
			font-size: 14px;
			margin-left: 20px;
		}
		.set_right_four_put4{
			width:300px;
			
			margin-left: 102px;
			margin-top:10px;

		}
		.set_right_four_5{
			width:794px;
			height:40px;
			font-size: 14px;
			margin-left: 20px;
		}
		.set_right_four_put5{
			
			margin-left: 102px;
			margin-top:10px;

		}
		



		.set_right_four_6{
			width:794px;
			height:40px;
			font-size: 14px;
			margin-left: 20px;
		}
		.set_right_four_put6{
			width:300px;
			
			margin-left: 110px;
			margin-top:10px;

		}

		.set_right_four_button{
			display:block;
			width:50px;
			height:20px;
			margin-top: 20px;
			margin-left: 220px;
			color:#2B7ACD;
			font-size:12px;

		}
	/***************密码右边栏结束**************************************/
	</style>
	<body>
	
	

		<div class="set clearFix">
		<!--   左边栏开始  -->
		
			<div class="set_left">
				<p class="set_left_head">设置</p>
				<p class="set_left_one"><a href="<?=$set_right;?>?number=1">修改头像</a></p>
				<p class="set_left_two"><a href="<?=$set_right;?>?number=2">个人资料</a></p>
				<p class="set_left_three"><a href="<?=$set_right;?>?number=3">个性签名</a></p>
				<p class="set_left_four"><a href="<?=$set_right;?>?number=4">密码安全</a></p>
			</div>
	
		<!--   左边栏结束  -->

		<!--   右边栏开始  -->

			<!--   修改头像  -->
			<?php if($_GET['number']==1):?>
			<div class="set_right_one">
				<div class="set_right_one_tip1">当前我的头像</div>
				<p class="set_right_one_tip2">如果您还没有设置自己的头像，系统会显示为默认头像，您需要自己上传一张新照片来作为自己的个人头像</p>
				<p class="set_right_one_img"><img  style="width:100px;height:100px;" src="<?=$web_site;?><?=$res[0]['picture'];?>"></p>
 				<p class="set_right_one_tip3">设置我的新头像</p>
 				<form action="<?=$admin_home;?>set_up_update.php" method="post" enctype="multipart/form-data">
 					<input class="set_right_one_put1" type="file" name="picture" value="" /><br />
 					<input class="set_right_one_put2" type="submit" value="提交"/>
		
 				</form>
			</div>
			<?php endif;?>
		

			<!--   个人资料  -->
			
	<!--
			<?php if($_GET['number']==2):?>			
			<div class="set_right_two">
				<div class="set_right_two_head">基本资料</div>

				<form action="" method="" enctype="">
					
					<div class="set_right_two_0 clearFix">
						<p class="set_right_two_p0">用户名</p>
						<p class="set_right_two_p1">dingjiang</p>
					</div>
					<div class="set_right_two_1">
						真实姓名<input class="set_right_two_put1" type="text" name="realname" value="">
					</div>
					<div class="set_right_two_2">
						性别<input class="set_right_two_put2" type="radio" name="sex" value="1" id="man" checked><label for="man">男</label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
						<input type="radio" name="sex" value="2" id="woman"><label for="woman">女</label>
					</div>
					<div class="set_right_two_3">
						生日<input class="set_right_two_put3" type="text" name="birthday" value="" placeholder="年-月-日">
					</div>
					<div class="set_right_two_4">
						籍贯<input class="set_right_two_put4" type="text" name="place" value="" placeholder="某某省">
					</div>
					<div class="set_right_two_5">
						QQ号码<input class="set_right_two_put5" type="text" name="qq" value="">
					</div>

					<input class="set_right_two_put6" type="submit" value="保存">
				</form>

			</div>
			<?php endif;?>
		-->	

			<!--   个性签名  -->
			<?php if($res):?>
				
			<?php foreach($res as $k => $v):?>

			<?php if($_GET['number']==3):?>
			<div class="set_right_three">
				<div class="set_right_three_head">个性签名</div>
				
				<br />
				<form action="<?=$admin_home;?>set_up_update.php?number=<?=$_GET['number'];?>" method="post" enctype="multipart/form-data">
					<textarea id="ckeditor" class="ckeditor" value="<?=$res[0]['autograph'];?>" name="autograph"><?=$v['autograph'];?></textarea>

					<input class="set_right_three_button" type="submit" value="保存">
				</form>

			</div>
			<?php endif;?>
	
			<!--   密码安全  -->
			<?php if($_GET['number']==4):?>
			<div class="set_right_four">
				<div class="set_right_four_head">您必须填写旧密码才能修改下面的资料</div>
				<form action="<?=$admin_home;?>set_up_update.php" method="post" enctype="multipart/form-data">
					<div class="set_right_four_1">
						旧密码<input class="set_right_four_put1" type="password" name="oldPassword" value="">
					</div>

					<div class="set_right_four_2">
						新密码<input class="set_right_four_put2" type="password" name="newPassword" value="" placeholder="如不需要更改密码，此处请留空">
					</div>

					<div class="set_right_four_3">
						确认新密码<input class="set_right_four_put3" type="password" name="reNewPassword" value="" placeholder="如不需要更改密码，此处请留空" >
						
					</div>

					<div class="set_right_four_4">
						Email<input class="set_right_four_put4" type="text" name="email" value=""  placeholder="取回密码时使用">
					</div>
					<div class="set_right_four_5">
						安全提问<select class="set_right_four_put5" name="safeProblem" size="1" id="" value="" multiple="multiple">
							<option class="set_right_four_put5_option" value="none" >无安全问题</option>
							<option class="set_right_four_put5_option" value="1">配偶的名字</option>
							<option class="set_right_four_put5_option" value="2" selected="select">自己的生日</option>
							<option class="set_right_four_put5_option" value="3">家庭住址</option>
						</select>
	<!--					<select name="questionidnew" id="questionidnew">
							<option selected="">保持原有的安全提问和答案</option>
							<option>无安全提问</option>
							<option>母亲的名字</option>
							<option>爷爷的名字</option>
							<option>父亲出生的城市</option>
							<option>您其中一位老师的名字</option>
							<option>您个人计算机的型号</option>
							<option>您最喜欢的餐馆名称</option>
							<option>驾驶执照最后四位数字</option>
						</select>      -->
					
					</div>
					

					<div class="set_right_four_6">
						回答<input class="set_right_four_put6" type="text" name="answer" value="" placeholder="如您设置新的安全提问，请在此输入答案">
					</div>
					<input class="set_right_four_button" type="submit" value="提交">

				</form>
					


			</div>
			<?php endif;?>
			

			<!--   个人资料  -->
			
	
			<?php if($_GET['number']==null || $_GET['number']==2):?>			
			<div class="set_right_two">
				<div class="set_right_two_head">基本资料</div>
					
				<form action="<?=$admin_home;?>set_up_update.php?number=<?=$_GET['number'];?>" method="post" enctype="multipart/form-data">
				
					
					<div class="set_right_two_0 clearFix">
						<p class="set_right_two_p0">用户名</p>
						<p class="set_right_two_p1"><?=$_COOKIE['username'];?></p>
					</div>
					<div class="set_right_two_1">
						真实姓名<input class="set_right_two_put1" type="text" name="realname" value="<?=$v['realname'];?>">
					</div>
					<div class="set_right_two_2">
						性别<input class="set_right_two_put2" type="radio" name="sex" value="1" <?=$v['sex']==1?'男':null;?> id="man" checked><label for="man">男</label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
						<input type="radio" name="sex" value="2" <?=$v['sex']==2?'女':null;?> id="woman"><label for="woman">女</label>
					</div>
					<div class="set_right_two_3">
						生日<input class="set_right_two_put3" type="text" name="birthday" value="<?=$birthday=isset($v['birthday'])?date('Y-m-d',$v['birthday']==0?0:$v['birthday']):null;?>" placeholder="年-月-日">
					</div>
					<div class="set_right_two_4">
						籍贯<input class="set_right_two_put4" type="text" name="place" value="<?=$v['place'];?>" placeholder="某某省">
					</div>
					<div class="set_right_two_5">
						QQ号码<input class="set_right_two_put5" type="text" name="qq" value="<?=$v['qq'];?>">
					</div>

					<input class="set_right_two_put6" type="submit" value="保存">
					
				</form>
				
			</div>
			<?php endif;?>
			<?php endforeach;?>
			<?php endif;?>
			<!--   右边栏结束  -->
		</div>

	
	</body>
</html>